(function() {
	Path.on("/user/__basename__.html", function(_current_location) {
		var queryString = _current_location.query;
		App.set("$Cache.user.tickets.state", queryString.get("state") || 1);
		// 获取优惠券信息，state=1：未使用；2：已使用；3：已过期
		coAjax.get(appConfig.user.ticket_list, {
			state: queryString.get("state") || 1
		}, function(result) {
			App.set("$Cache.user.tickets.list", result.result);
		});
	});
}());